﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace State
{
    class Program
    {
        static void Main(string[] args)
        {
            Person yuan = new Person();
            //Console.WriteLine(yuan.GetState().ToString());

            State workState = new WorkState(yuan);
            workState.Write();
            workState.Play();



            State restState = new RestState(yuan);
            restState.Write();
            restState.Play();

            Console.ReadKey();
        }
    }
}
